package com.hnichr.ping.tenant.controller;

import com.hnichr.ping.common.vo.TenantAddVo;
import com.hnichr.ping.common.vo.TenantResultVo;
import com.hnichr.ping.tenant.service.TenantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tenant")
public class TenantController {

    @Autowired
    private TenantService tenantService;

    @RequestMapping("/add")
    public TenantResultVo add(@RequestBody TenantAddVo addVo){
        return tenantService.add(addVo);
    }
}
